package com.woniu.dao;

import com.woniu.pojo.Role;

import java.util.List;

public interface RoleDAO {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List queryRoles();

    List<Role> queryRolesByPage(Integer currentPage, Integer pageSize, String roleName);

    String queryAuthIdsByRoleId(Integer roleId);

    void updateRoleAuthIds(String authIds, Integer roleId);
}